from google.appengine.ext import db
from com.jumang.model.note import note
from com.jumang.model.uploadfile import file
from com.jumang.model.uploadpicture import Picture


class basecomment(db.Model):
  name=db.StringProperty(required=True)
  address=db.StringProperty()
  content=db.TextProperty(required=True)
  createTime=db.DateTimeProperty(auto_now_add=True)
  
class notecomment(basecomment):
  note=db.ReferenceProperty(note)
    
class filecomment(basecomment):
  mfile=db.ReferenceProperty(file)
  
class pictureComment(basecomment):
  picture=db.ReferenceProperty(Picture)

    
class TrackBack(db.Model):
  title=db.StringProperty()
  blog_name=db.StringProperty()
  url=db.StringProperty(required=True)
  excerpt=db.TextProperty()
  note=db.ReferenceProperty(note)
  createTime=db.DateTimeProperty(auto_now_add=True)
